 <?php if(!isset($_SESSION['username'])){?>
 
 <!-- dang nhap-->
        	<div id="khung_group">
   		    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td>
             		<div id="title_group">
                    	<div id="ing_left"><img src="public/images/nut_muiten.png"/></div><div class="chu_title">ĐĂNG NHẬP</div> 
                    </div>
             		<div class="contain_group">
                    	<div id="contain_group_noidung">
                    	<div id="dangnhap">
                    	 <form name="dangnhap" method="post" action="">
                        <table>
                         <tr>
                                  <td>Tên đăng nhập:</td>
                                  <td><input type="text" name="username" id="username" size="10" value="*****"/></td>
                                </tr>
                                <tr>
                                  <td> Mật khẩu:</td>
                                  <td ><input type="password" name="password" id="password" size="10" value="******"/></td>
                                </tr>
                                <tr>
                                  <td colspan="2">
                                    <input type="submit" name="ok" value="" style="background: url('public/hinhanh/dangnhap.jpg');height: 28px;width: 83px;margin-top: 10px" />
                                  	<a href="index.php?mod=dangky"><img src="public/hinhanh/dangky.jpg" style="height: 28px;width: 83px;margin-top: 10px;float: right;"></a>
                                 </td>
                         </table>
                         </form>
                         </div>
						</div>
                    </div>
             		 <div class="group_footer"></div>
           		 </td></tr>
      		</table>
 			</div>
         <!-- end -->
 <?php }
else { 
//var_dump($_SESSION);
	?> 
  
	<!-- dang nhap-->
        	<div id="khung_group">
   		    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                <td>
             		<div id="title_group">
                    	<div id="ing_left"><img src="public/images/nut_muiten.png"/></div><div class="chu_title">ĐĂNG NHẬP</div> 
                    </div>
             		<div class="contain_group">
                    	<div id="contain_group_noidung">
                    	<div id="dangnhap2">
                    	 <form name="dangnhap2" method="post" action="">
                        <table>
                         <tr height="10px">
                                  <td align="center" ><?php echo "Chào bạn"; ?></td>
                                  </tr>
                                  <tr height="10px">
									<td align="center"><p style='color:blue'><?php if(@$_SESSION['ten'])
									{
									echo @$_SESSION['ten']." !";
}else{
echo @$_SESSION['username']." !";
}
?></p></td>
                             </tr height="10px">
                              <tr>
                                  <td align="center"><a href='index.php?mod=suathongtincanhan&id=<?php echo $_SESSION['id'];?>' style='color:#F00'>Sửa thông tin cá nhân</a></td>
                      			 </tr>
                      			 <tr>
                                  <td align="center"><a href='index.php?mod=lichsugiaodich&id=<?php echo $_SESSION['dienthoai'];?>' style='color:#F00'>Lịch sử giao dịch</a></td>
                      			 </tr>
                                <tr>
                                  <td align="center"><a href='index.php?mod=thoat' style='color:#F00'>Thoát</a></td>
                      			 </tr>
                                
                         </table>
                         </form>
                         </div>
						</div>
                    </div>
             		 <div class="group_footer"></div>
           		 </td></tr>
      		</table>
 			</div>
         <!-- end -->                            	
                            <?php        
                                 }
                            ?>         
         
         